<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">

<?php
global $db;
	$sms = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."phone_channel where id=1 and pkey='1' and (type='2' or type='3') order by id desc");
	//获取账户信息
	$username=$sms["username"];
	$password=$sms["password"];
	$connection=explode('#515158#',$blog["connection"]);
	$sms_add=explode('#01',$connection[1]);
	$phoneurl=$sms_add[0].trim($username).$sms_add[1].trim($password);
	$res = Utility::HttpRequest($phoneurl);
?>

<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
$nums=18;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='3' ORDER BY menuid Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<form name="save" method="post" action="?ac=channel_edit&do=save&fileurl=sms">
	<input type="hidden" name="savetype" value="add" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">手机通道设置</td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
 <tr>
      <td nowrap class="TableContent" width="15%" style="font-size:18px;font-weight:bold;"> 提示：</td>
      <td class="TableData" style="font-size:18px;font-weight:bold; color:#006600; line-height:150%;">如果您还没有开通短信平台的用户名和密码，请登录官方网站开通<br>开通后将官网提供的账号和密码输入后并保存，具体咨费以官网为主,详情请致电400-6767-169<br>
	  官方网址：<a href="http://www.515158.com" target="_blank">http://www.515158.com</a>	 接口申请：<a href="http://m.515158.com/API/user.php?user=<?=GET_INC_CONFIG_INFO(com_userid)?>&number=<?=GET_INC_CONFIG_INFO(com_number)?>" target="_blank">http://m.515158.com</a>	  </td>
    </tr>
 <tr>
      <td nowrap class="TableContent" width="15%"> 用户名：</td>
      <td class="TableData">
     <input name="username" type="text" class="BigInput" value="<?=$blog["username"]?>" id="username" style="width: 200px;" maxlength="100" /></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 密码：</td>
      <td class="TableData">
     <input name="password" type="password" class="BigInput" value="<?=$blog["password"]?>" id="password" style="width: 200px;" maxlength="100" /></td>
    </tr>
    <tr>
      <td nowrap class="TableContent" width="15%"> 企业名称：</td>
      <td class="TableData">
     <?=$blog["company"]?></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 备注：</td>
      <td class="TableData">
     <?=$blog["content"]?></td>
    </tr>
	<tr>
      <td nowrap class="TableContent" width="15%"> 可用余额：</td>
      <td class="TableData"><?php if($blog["username"]!=''){?><span style="font-size:18px; color:#FF0000; font-weight:bold;"><?=$res?></span>条短信<?php }?></td>
    </tr>

 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">
        <input type="submit" value="保存信息" class="BigButton">
      </td>
    </tr>
  </table>
</form>
</div>
</div>
 
 
</body>
</html>
